JAVASCRIPT
CSS
PHP
3rd-Party Scripts
UPLOAD YOUR SCRIPT
Search
Recent Searches
"stringcomparision "
My
Web Based Web Crawler
"printfire "
array
"printfire ",printtotheFireBugconsoleinFirefox
my document.doc
Dynamic
JavaScript Validation
Dynamically Create CSS Rules via Javascript
Rate this script:
I Love it
/
I Hate it
Prototype and window.onload
Code
<% content_for
(
"page_scripts"
)
do
%>
Event.
observe
(
window,
'load'
,
function
(
)
{
$
(
'username'
)
.
focus
(
)
}
)
;
<% end %>
<script type=
"text/javascript"
>
<%= @content_for_page_scripts %>
</script>
Prototype and window.onload scripts
|
Prototype and window.onload snippet
|
Prototype and window.onload example
|
Prototype and window.onload tutorial
|
Prototype and window.onload code