Debt Consolidation - Web Hosting - Free Articles Directory About Cancer - Debt Consolidation - Free Advertising

PDA

View Full Version : How to Hide Javascript


webcosmo
Apr 17th 2007, 5:16 pm
I am trying to script a bookmarking functionality. I have the script working.
Its on this page: http://www.webcosmo.com/tools/bookmarks/bookmarkserver.aspx?bmUrl=http://www.webcosmo.com&bmTitle=Local%20Classified%20Ads

But I was wondering if anybody know a way to hide javascript.

Aragorn
Apr 18th 2007, 1:59 am
Edit the code
<a id="dlSites__ctl1_linkbtnAddFavorite" href="javascript:__doPostBack('dlSites$_ctl1$linkbtnAddFavorite','')">Ask</a>
to
<a id="dlSites__ctl1_linkbtnAddFavorite" href="#" on click="__doPostBack('dlSites$_ctl1$linkbtnAddFavorite','');return false;">Ask</a>

webcosmo
Apr 18th 2007, 8:50 am
let me try that. thank you.

ajsa52
Apr 18th 2007, 9:07 am
On the code from Aragorn there is a misspell.
Replace on click with onClick

Aragorn
Apr 19th 2007, 1:38 am
On the code from Aragorn there is a misspell.
Replace on click with onClick
Oops! I'm sorry. Thanks for pointing it out :)