...

View Full Version : not only top but also body seen



joonstar
09-22-2006, 04:12 PM
top

<script type="text/javascript">
var msg = "Are you sure?";
if (confirm(msg)) window.location.replace('http://yahoo.com');
else window.history.back();
</script>

bodyThe code above pop-ups an alert when it is loading.

When the alert pops, the user can see the text "top", but can't see the text body.

I like to make it the text body seen to the user.

Can I do it with your help?

A1ien51
09-22-2006, 04:18 PM
The page is rendered top to bottom, so put it at the end of the page or call it on window.onload.

Eric



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum