Click to See Complete Forum and Search --> : creating link in javascript
knight2kin
09-24-2004, 11:12 AM
hello all,
am new user here .... i am looking for someone who could help me out with html code in javascript .
is it possible to use the <a href > tag within the javascript . well i got the calendar script from the javascript.com n wants to add some spice to it. i want to add hyperlink to the events on the particular day of the month ....... can anyone help me out ?
thanks
k2k
artemis
09-24-2004, 12:18 PM
what exactly do you want to do.
do you want some links to be dynamically generated which the user will then click on or do you want the JavaScript to process internally?
some code might be useful also.
Intensity
09-27-2004, 01:04 PM
Can somehelp with this anchor javascript link?
I have found some link code like this:
<a href="javascript:popup('www.yoursite.com')" target="_self">link</a>
Now the 'popup' is refinded in the header to pop up a basic window, more for displaying purposes.
What is the basic script layout to just have a regular, new window populate both for IE and NE?
I am wanting to do this since I don't want some of my internal links to be spidered on that web page, and by that, pushing PR only to regular html anchor links.
Thanks for any feedback.
sciguyryan
09-27-2004, 02:04 PM
Originally posted by Intensity
Can somehelp with this anchor javascript link?
I have found some link code like this:
<a href="javascript:popup('www.yoursite.com')" target="_self">link</a>
Now the 'popup' is refinded in the header to pop up a basic window, more for displaying purposes.
What is the basic script layout to just have a regular, new window populate both for IE and NE?
I am wanting to do this since I don't want some of my internal links to be spidered on that web page, and by that, pushing PR only to regular html anchor links.
Thanks for any feedback.
The best way maybe something like this:
<script type="text/javascript">
<!--
function popup(){
var OpenWin = windwo.open();
OpenWin.document.write("Stuff to write goes in here....");
}
//-->
</script>
Hope that helps,
RyanJ