开发者

Hidden url for external page load jQuery php

开发者 https://www.devze.com 2023-02-05 17:41 出处:网络
I load external php page using jQuery plugin with this line of code: <a href=\"cat.php\" rel=\"container\">Tab 2</a>

I load external php page using jQuery plugin with this line of code:

<a href="cat.php" rel="container">Tab 2</a>

How to hide href url (cat.php) for more security and not show in html sourc开发者_如何转开发e code page?

Example :

<a href="Block12" rel="container">Tab 2</a>
  • Block 12 is php code to generate cat.php address
  • Block 13 is php code to generate data.php address

etc...

Thanks


Should do:

$("a[href='Block12']").attr('href', 'cat.php');

This will reveal the destination to the user in e.g. a status bar.

0

精彩评论

暂无评论...
验证码 换一张
取 消