Put a link on a script with onklick?

dinmikkith

New Member
Messages
12
Reaction score
0
Points
0
Hi,

I don't know if this is the right place but if I have a script like:

<script src="http://www.samplesite.com/PODBB/podbb.js" hight="250" width="500"></script> how can I put a link on it?
 

nunoabc

New Member
Messages
151
Reaction score
0
Points
0
it isn't like that. in the link you, for example, have
<a href="http://blablabla.com/">BlaBlaBla</a>
but you now put
<a onclick="window.location='http://blablabla.com'">BlaBlaBla</a>

or did I miss understood?
 
Last edited:

a24money

New Member
Messages
3
Reaction score
0
Points
0
or you can use javascript.
It should be formated as shown below:

<html>
<head>

<script type="text/javascript">
function gotopage ()
{
document.location.href="the url";
}
</script>

</head>

<body>

<img src="a image" onclick="gotopage()" />

</body>
</html>
 

dinmikkith

New Member
Messages
12
Reaction score
0
Points
0
Hm, there is no img tag its like script src="blblabla" and this is displaying a picture from an external server. how can i link this
 

gayaniw

New Member
Messages
7
Reaction score
0
Points
0
<script language="javascript">
function gotourl(){
window.location="http://www.redtubevideo.info";
}
</script>
<a onclick="script:gotourl()">redtube video</a>


try this bro
 
Top