SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Zealot
    Join Date
    Jan 2001
    Posts
    116
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey all,

    I'm trying to turn a button into a link and am having a couple of problems.
    the line of code in question is as follows:

    This link brings up<a href="javascriptopup('home.html?client=$client','POPUP',600,300)" TARGET="">input type="button" value="bug button"</a>

    I don't know if it's my javascript thats off or I'm missing something in the html. argh!! help.

  2. #2
    Freelance Web Designer KeithMcL's Avatar
    Join Date
    Oct 1999
    Location
    Dublin, Ireland
    Posts
    1,125
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well i'm not a javascript guru but I think your link should read

    <a href="javascriptpopup('home.html?client=$client','POPUP',600,300)" TARGET="" input type="button" value="bug button">link name</a>

    Didn't try it myself.

  3. #3
    SitePoint Wizard
    Join Date
    Jan 2001
    Location
    Milton Keynes, UK
    Posts
    1,011
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try the following:

    Code:
    <input type="button" value="bug button" onClick="javascriptpopup('home.html?client=$client','POPUP',600,300)">
    Shane

  4. #4
    SitePoint Zealot
    Join Date
    Jan 2001
    Posts
    116
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the feedback,
    Couldn't get either to work but I think there is another conflicting issue. I think I'll just use an image instead.

  5. #5
    Say WHA?! goober's Avatar
    Join Date
    Sep 2000
    Location
    United States
    Posts
    1,921
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    no no no.

    Do a button....try this code.
    Code:
    <INPUT TYPE="button" onClick='document.location.href=http://www.yoursite.com'" Value="boo">
    If that doesn't work, try:
    Code:
    <INPUT TYPE="button" onClick=document.location.href='http://www.yoursite.com'" Value="boo">
    Hope this helped! It should work with that, as I use it on a few of my sites.

    NOTE: This isn't a pop-up window (sorry for my incompetence if that's what you wanted). It is a mere link.

    hehe, also, on the example you posted, you had no beginning "<" for your INPUT tag. could that be the problem?

    Hope this helps!
    Sean Killeen [LinkedIn] [Twitter] [Web]

    Warning: Reality.sys corrupted. Universe halted. Reboot? (Y/N)


Bookmarks

Posting Permissions

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