javascript - Using AJAX for page items while still allowing them to be opened in a new tab/window -


i'm looking @ using ajax allow content within part of page reloaded without reloading entire web page (eg things overview, reviews, specifications, etc pages single item).

the problem still want allow users open these items in new tab or window (using normal systems web browser such right clicking link , picking "open link in new tab) rather left clicking link).

is @ possible this, or best practice reload entire page in cases this?

it's doable. need provide href , onclick in links.

the href activate if user has no js, or if user decides open link in special way (new tab, etc.)

the onclick activate on "normal" clicks of link. can cancel default action (by returning false or using js lib of choice's way it) , ajax stuff.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -