I'm creating some JQuery examples and I wanted to add a view source link to each HTML page. After a little Googling I found this article on how to do it. But this just loads the page into the current window. I think it would be better if it popped up into a new windows.
Here is the code I created to view the source in a new window.
1:<a href="javascript:void(window.open('view-source:'+document.location,
2:'_blank'))">View Source</a>
No comments:
Post a Comment