Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Apr 2003
    Location
    Seoul, Korea
    Posts
    329
    Thanks
    0
    Thanked 0 Times in 0 Posts

    not only top but also body seen

    Code:
    top
    
    <script type="text/javascript">
    var msg = "Are you sure?";
    if (confirm(msg)) window.location.replace('http://yahoo.com');
    else window.history.back();
    </script>
    
    body
    The 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?
    Get my greedy up

  • #2
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    The page is rendered top to bottom, so put it at the end of the page or call it on window.onload.

    Eric
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •