简体   繁体   中英

Why won't my link take the user anywhere, but if I right click and select “Open in new tab” it will open fine

我的网站是http://christianselig.com ,在“关于”页面的最底部,如果您单击“工作”,它实际上并不会进入,但是如果我右键单击并选择“在新选项卡中打开”它会。

On the Contact page, your Javascript is throwing an error when you click the link. "Uncaught TypeError: Cannot read property 'top' of undefined" in script.js , line 6.

It seems you're mixing up the Javascript that should go on the Contact page with the script that should only be showing up on the Home page. Separate out your scripts so they only appear on their appropriate pages (or do a check to see what page you're on), and the link will work.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM