Onclick error for image. Nothing happens, Help please!

2 replies
Hello Warriors,

I am trying to get a streaming image to click to specific page. So instead of having an image link I am going to have a streaming link. I have had success in getting it to go to a javascript function but when I try to change it to a physical address nothing happens.

HTML Code:
<input type="image"  name="B1"  src="http://webcam02.boynemountain.com/-wvhttp-01-/getoneshot?camera_id=1&frame_count=no_limit" colour="Red" name="Begin watching live webcams  " value="Click Here To Start" onclick="randomlink()" style="width:270px;height:100px">
Now when I try
HTML Code:
<input type="image"  name="B1" align="left"
src="http://webcam02.boynemountain.com/-wvhttp-01-/getoneshot?camera_id=1&frame_count=no_limit" onclick="http://watchthiscam.com/124/124.php"
 style="width:150px;height:100px">
It does nothing. If you need a link to the page I can link it. Thanks!!!
#error #image #onclick
  • Profile picture of the author Workman
    Instead of:
    onclick="http://watchthiscam.com/124/124.php"

    Try this:
    onclick="window.location.href='http://watchthiscam.com/124/124.php';"
    {{ DiscussionBoard.errors[4354012].message }}
  • Profile picture of the author jaimegm
    I would try something like
    <a href='http://www.whatever.com/something.php'><img src='myimage.jpg' /></a>
    {{ DiscussionBoard.errors[4392582].message }}

Trending Topics