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 3 of 3
  1. #1
    New Coder
    Join Date
    Dec 2003
    Location
    australia
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Onclick in Frames

    Hello,

    Not sure if this can be accomplished but Iíll ask anyway. And yes this 50+ person struggles at times with coding.

    Iíve got a frames page hanging off my index page. It contains three pages so thats 4 in total. Page 3 allows visitors to load different URLís of pictures into page 2. Page 1 is the title page. I want visitors to return to my index page once they have seen the pictures they want to. I would like the frames page to be totally replaced in the browser by the index page.

    Iíve searched the forum and other sources but canít resolve the issue. Here is my attempt. Can someone please give me some clue or re jig the code below for me to make my life easier.

    <FORM>
    <INPUT TYPE="button" VALUE="Home"
    onClick= location.replace photos.htm,photos01.htm,photos02.htm,photos03.htm,('http://www.ianlamont.id.au');
    </FORM>


    Thanks

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,075
    Thanks
    0
    Thanked 256 Times in 252 Posts
    <input type="button" value="Home" onclick="top.location.replace('http://www.ianlamont.id.au');" />

    or a link so that it works even if javascript is disabled.

    <a href="http://www.ianlamont.id.au" target="_top">Home</a>
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________

  • #3
    New Coder
    Join Date
    Dec 2003
    Location
    australia
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thank you so much. This is an amazing forum.

    Abbas


  •  

    Posting Permissions

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