Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

a link to sourcecode

Status
Not open for further replies.

tiamat2012

Programmer
Dec 12, 2004
144
US
Hey everyone,

I'm trying to make a link to my source code so that people can see what my page looks with ease.

I know how to do it in javascript
Code:
onmousedown="void(document.location='view-source:'+document.location)"

works, but how do I do it with href?

I tried doing

Code:
<a href="void(document.location='view-source:'+document.location)">
View Source
</a>

but it didn't work, any ideas?

-Kerry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top