javascript - Link a #div and URL -


hey guys possible link div , url? want 2 links in 1 . 1 link target #div , 1 target actual site url in div.

i targeting div need url load in div.

<a href="http://site.com/product/product-link" class="class-here"> 

i can access div using url:

<a href="#modal" class="class-here"> 

better way describe this, not work obviously:

<a href="http://site.com/product/product-link" target="#modal" class="second"> 

i hiding div #modal in these tags:

{{#product_page}}  content here  {{/product_page}} 

hard 1 explain, more detail let me know.

you close, this:

 <a href="http://site.com/product/product-link#modal"> 

you can link id appending end of url, example, here link comment


Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -