SitePoint Sponsor |
|
User Tag List
Results 1 to 5 of 5
Thread: button as a link
-
Feb 26, 2001, 19:26 #1
- 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.
-
Feb 27, 2001, 05:23 #2
- 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.
-
Feb 27, 2001, 07:22 #3
- 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)">
-
Mar 2, 2001, 12:45 #4
- 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.
-
Mar 3, 2001, 15:02 #5
- 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">
Code:<INPUT TYPE="button" onClick=document.location.href='http://www.yoursite.com'" Value="boo">
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!
Bookmarks